20.8 AT^SCCNT Configure Pulse CounterThe AT^SCCNT write command serves to configure the GPIO10 pin as pulse counter. The pulse counter is designed to measure signals from 0 to 1000 pulses per second.
Remember that if the GPIO10 line is configured as GPIO (see AT^SCPIN) any attempt to activate the pulse counter will be rejected. Vice versa, if the pulse counter is opened the GPIO10 line cannot be configured as GPIO.
See also [2] for further detail on the pulse counter.
The URC applies only to the Limit counter mode set with parameter <mode>=1. It is delivered once the pulse counter has completed counting the number of pulses requested with parameter <limit>.
<action>(num)
<mode>(num)Activates the Start-Stop counter mode.
After setting this mode, use AT^SSCNT and the <action> parameter to start or stop the pulse counter or to read out the measured pulses.Activates the Limit counter mode and immediately starts the pulse counter. Parameter <limit> is mandatory for this mode.
<limit>(num)Number of pulses to be counted.
Parameter <limit> applies only to the Limit counter mode and is mandatory for this mode. Once the given number of pulses is reached, the ME sends one single URC "^SCCNT" which indicates the parameter <time>.
<time>(num)
• Measurement accuracy: In Limit counter mode, the parameter <time> implies an inaccuracy <5ms.
|